<template>
    <div>
        <span ref="title">ref的测试</span>
        <el-button @click="getRefSpan">获取dom元素</el-button>
    </div>
</template>
<script>
export default {
    methods:{
    getRefSpan(){
        console.log(this.$refs.title);
    }
    }
}
</script>